from django.urls import path
from .views import DemoViewSet
from rest_framework.routers import SimpleRouter

router = SimpleRouter()
# 利用router注册多个，建议prefix一定写, 如果''就出问题
router.register('', DemoViewSet)  # CRUD /demoapp/mgr/ list create  and  /demoapp/mgr/<int:pk>  retrive  update destory
urlpatterns = [
              ] + router.urls
